function ModelCreator(Model) {
  class ExtendModel extends Model {
    constructor(...args) {
      super(...args)
    }
  }

  return ExtendModel
}

const metadata = {
  display_name: { disable_field_onchange: 1 },
  parent_id: {
    domain: [['id', '!=', { field_id: {} }]]
  }
}

const AddonsModels = {
  'res.partner.category': {
    ModelCreator,
    metadata
  }
}

export default AddonsModels
